Integrand size = 26, antiderivative size = 77 \[ \int \frac {a+a \sin (e+f x)}{\sqrt {c-c \sin (e+f x)}} \, dx=\frac {2 \sqrt {2} a \text {arctanh}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{\sqrt {c} f}-\frac {2 a \cos (e+f x)}{f \sqrt {c-c \sin (e+f x)}} \]
[Out]
Time = 0.10 (sec) , antiderivative size = 77, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2815, 2758, 2728, 212} \[ \int \frac {a+a \sin (e+f x)}{\sqrt {c-c \sin (e+f x)}} \, dx=\frac {2 \sqrt {2} a \text {arctanh}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{\sqrt {c} f}-\frac {2 a \cos (e+f x)}{f \sqrt {c-c \sin (e+f x)}} \]
[In]
[Out]
Rule 212
Rule 2728
Rule 2758
Rule 2815
Rubi steps \begin{align*} \text {integral}& = (a c) \int \frac {\cos ^2(e+f x)}{(c-c \sin (e+f x))^{3/2}} \, dx \\ & = -\frac {2 a \cos (e+f x)}{f \sqrt {c-c \sin (e+f x)}}+(2 a) \int \frac {1}{\sqrt {c-c \sin (e+f x)}} \, dx \\ & = -\frac {2 a \cos (e+f x)}{f \sqrt {c-c \sin (e+f x)}}-\frac {(4 a) \text {Subst}\left (\int \frac {1}{2 c-x^2} \, dx,x,-\frac {c \cos (e+f x)}{\sqrt {c-c \sin (e+f x)}}\right )}{f} \\ & = \frac {2 \sqrt {2} a \text {arctanh}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{\sqrt {c} f}-\frac {2 a \cos (e+f x)}{f \sqrt {c-c \sin (e+f x)}} \\ \end{align*}
Time = 1.46 (sec) , antiderivative size = 135, normalized size of antiderivative = 1.75 \[ \int \frac {a+a \sin (e+f x)}{\sqrt {c-c \sin (e+f x)}} \, dx=-\frac {2 a \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (\sqrt {c} (1+\sin (e+f x))+\sqrt {2} \arctan \left (\frac {\sqrt {-c (1+\sin (e+f x))}}{\sqrt {2} \sqrt {c}}\right ) \sqrt {-c (1+\sin (e+f x))}\right )}{\sqrt {c} f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) \sqrt {c-c \sin (e+f x)}} \]
[In]
[Out]
Time = 3.84 (sec) , antiderivative size = 93, normalized size of antiderivative = 1.21
method | result | size |
default | \(\frac {2 \left (\sin \left (f x +e \right )-1\right ) \sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, a \left (\sqrt {c \left (\sin \left (f x +e \right )+1\right )}-\sqrt {c}\, \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right )\right )}{c \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}\, f}\) | \(93\) |
parts | \(-\frac {a \left (\sin \left (f x +e \right )-1\right ) \sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right )}{\sqrt {c}\, \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}\, f}-\frac {a \left (\sin \left (f x +e \right )-1\right ) \sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \left (\sqrt {c}\, \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right )-2 \sqrt {c \left (\sin \left (f x +e \right )+1\right )}\right )}{c \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}\, f}\) | \(169\) |
risch | \(-\frac {\left ({\mathrm e}^{i \left (f x +e \right )}-3 i\right ) \left ({\mathrm e}^{i \left (f x +e \right )}-i\right ) a \sqrt {2}\, \sqrt {-i c \left (-{\mathrm e}^{2 i \left (f x +e \right )}+1+2 i {\mathrm e}^{i \left (f x +e \right )}\right ) {\mathrm e}^{i \left (f x +e \right )}}\, {\mathrm e}^{-i \left (f x +e \right )}}{f \sqrt {i c \left ({\mathrm e}^{2 i \left (f x +e \right )}-1-2 i {\mathrm e}^{i \left (f x +e \right )}\right ) {\mathrm e}^{i \left (f x +e \right )}}\, \sqrt {c \left (i {\mathrm e}^{2 i \left (f x +e \right )}-i+2 \,{\mathrm e}^{i \left (f x +e \right )}\right ) {\mathrm e}^{-i \left (f x +e \right )}}}+\frac {4 i \left (-{\mathrm e}^{i \left (f x +e \right )}+i\right ) \left (c^{\frac {3}{2}}+\arctan \left (\frac {\sqrt {i {\mathrm e}^{i \left (f x +e \right )} c}}{\sqrt {c}}\right ) c \sqrt {i {\mathrm e}^{i \left (f x +e \right )} c}\right ) a \sqrt {2}\, {\mathrm e}^{-i \left (f x +e \right )}}{f \,c^{\frac {3}{2}} \sqrt {c \left (i {\mathrm e}^{2 i \left (f x +e \right )}-i+2 \,{\mathrm e}^{i \left (f x +e \right )}\right ) {\mathrm e}^{-i \left (f x +e \right )}}}\) | \(293\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 196 vs. \(2 (66) = 132\).
Time = 0.27 (sec) , antiderivative size = 196, normalized size of antiderivative = 2.55 \[ \int \frac {a+a \sin (e+f x)}{\sqrt {c-c \sin (e+f x)}} \, dx=\frac {\frac {\sqrt {2} {\left (a c \cos \left (f x + e\right ) - a c \sin \left (f x + e\right ) + a c\right )} \log \left (-\frac {\cos \left (f x + e\right )^{2} + {\left (\cos \left (f x + e\right ) - 2\right )} \sin \left (f x + e\right ) + \frac {2 \, \sqrt {2} \sqrt {-c \sin \left (f x + e\right ) + c} {\left (\cos \left (f x + e\right ) + \sin \left (f x + e\right ) + 1\right )}}{\sqrt {c}} + 3 \, \cos \left (f x + e\right ) + 2}{\cos \left (f x + e\right )^{2} + {\left (\cos \left (f x + e\right ) + 2\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 2}\right )}{\sqrt {c}} - 2 \, {\left (a \cos \left (f x + e\right ) + a \sin \left (f x + e\right ) + a\right )} \sqrt {-c \sin \left (f x + e\right ) + c}}{c f \cos \left (f x + e\right ) - c f \sin \left (f x + e\right ) + c f} \]
[In]
[Out]
\[ \int \frac {a+a \sin (e+f x)}{\sqrt {c-c \sin (e+f x)}} \, dx=a \left (\int \frac {\sin {\left (e + f x \right )}}{\sqrt {- c \sin {\left (e + f x \right )} + c}}\, dx + \int \frac {1}{\sqrt {- c \sin {\left (e + f x \right )} + c}}\, dx\right ) \]
[In]
[Out]
\[ \int \frac {a+a \sin (e+f x)}{\sqrt {c-c \sin (e+f x)}} \, dx=\int { \frac {a \sin \left (f x + e\right ) + a}{\sqrt {-c \sin \left (f x + e\right ) + c}} \,d x } \]
[In]
[Out]
none
Time = 0.33 (sec) , antiderivative size = 120, normalized size of antiderivative = 1.56 \[ \int \frac {a+a \sin (e+f x)}{\sqrt {c-c \sin (e+f x)}} \, dx=\frac {\frac {\sqrt {2} a \log \left (-\frac {\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1}{\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1}\right )}{\sqrt {c} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} - \frac {4 \, \sqrt {2} a}{\sqrt {c} {\left (\frac {\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1}{\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1} - 1\right )} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}}{f} \]
[In]
[Out]
Timed out. \[ \int \frac {a+a \sin (e+f x)}{\sqrt {c-c \sin (e+f x)}} \, dx=\int \frac {a+a\,\sin \left (e+f\,x\right )}{\sqrt {c-c\,\sin \left (e+f\,x\right )}} \,d x \]
[In]
[Out]